﻿<%@page import="java.util.*" %>
<%
	String Code = (String)session.getAttribute("LanguageCode");
	String SubCode = (String)session.getAttribute("LanguageSubcode");
    Locale locale = new Locale(Code, SubCode);
	ResourceBundle resource = ResourceBundle.getBundle("resource", locale);
%>
<script>
	$(window).load(function() {
	loadAddFlexpackageData(<%=request.getParameter("id")%>);
	callDatePicker();
});
</script>
<script src="/js/components/selectDropDown.js"></script>
<link href="/css/Adminconsole/pricemanager/addfix.css" rel="stylesheet" />
			<div id="suggest" style="margin-bottom:15px">Add Package</div>
<table class="addtable">
    <tr>
        <td>&nbsp;</td>
    </tr>
    <tr>
        <td>
            <table id="packagedetailtable">
                <tr>
                    <td>
                        <span class="tagname"><% out.print(resource.getString("AdminConsole.Page.PriceManager.packagename"));%>*</span>
                    </td>
                    <td>
                        <input type="text" id="packagename" size="50" />
                    </td>
                </tr>
                <tr>
                    <td>
                        <span class="tagname"><% out.print(resource.getString("AdminConsole.Page.Room.roomtype"));%>*</span>
                    </td>
                    <td>
                      <select id="roomtype"></select>
                    </td>
                </tr>
                <tr>
                    <td>
                        <span class="tagname"><% out.print(resource.getString("AdminConsole.Page.PriceManager.description"));%>*</span>
                    </td>
                    <td>
                        <textarea id="description" style="margin: 2px; width: 328px; height: 32px;"></textarea>
                    </td>
                </tr>
                <tr>
                    <td class="tagname tworow">
                        <span><% out.print(resource.getString("AdminConsole.Page.PriceManager.available"));%>*</span>
                    </td>
                    <td>
                        <table id="gtList" cellpadding="0" cellspacing="0" style="width:100%;border-bottom:solid 1px #e0e0e1;border-left:solid 1px #e0e0e1;border-right:solid 1px #e0e0e1;border-top:solid 1px #e0e0e1">
                            <tr>
                                <td colspan="3" style="text-align:center;border-bottom:solid 1px #e0e0e1">
                                    <span>-<% out.print(resource.getString("AdminConsole.Page.PriceManager.guesttypes"));%>-</span>
                                </td>
                            </tr>

                        </table>
                    </td>
                </tr>
                <tr>
                    <td>
                        <span class="tagname"><% out.print(resource.getString("AdminConsole.Page.PriceManager.length"));%>*</span>
                    </td>
                    <td><input type="text" id="from" maxlength="15" size="10"/>&nbsp;&nbsp;
                                <% out.print(resource.getString( "AdminConsole.Page.PriceManager.to"));%>
                                    <input type="text" id="to" maxlength="15" size="10"/>
                    </td>
                </tr>
                <tr>
                    <td>
                        <span style="float:right;padding-right:30px">
							<% out.print(resource.getString("AdminConsole.Page.PriceManager.packagecontrol"));%>*
						</span>
                    </td>
                    <td>
                        <input g="control" name="gtype_on" type="checkbox" value="on" onClick="swicth(name)" />
                        <% out.print(resource.getString( "AdminConsole.Page.PriceManager.on"));%>&nbsp;&nbsp;
                            <input name="gtype_off" type="checkbox" value="off" onClick="swicth(name)" />
                            <% out.print(resource.getString( "AdminConsole.Page.PriceManager.off"));%>
                    </td>
                </tr>
            </table>
        </td>
    </tr>
    <tr>
        <td style="text-align:center">
            <input id="btnSearch" class="addbtn" type="button" value="Search" onClick="searchdate($(this))">
        </td>
    </tr>
    <tr>
        <td style="border-top:solid 1px #e0e0e1;padding-top: 7px;">
            <span style="padding-left:30px;">
				<% out.print(resource.getString("AdminConsole.Page.PriceManager.ratepackage"));%>
			</span>
        </td>
    </tr>
    <tr>
        <td>
            <table  id="rtList" style="text-align:center;border-collapse:collapse;width:100%">
            	<tr>
                	<td style="width:10%;" class="flextablehead"><% out.print(resource.getString("POS.payment.orderdetail.date"));%></td>
                    <td style="width:4%;" class="flextablehead"><% out.print(resource.getString("AdminConsole.Page.Console.Day"));%></td>
                    <td style="width:28%;" class="flextablehead" colspan="3"><% out.print(resource.getString("AdminConsole.Page.RoomTypes.rackrate"));%></td>
                    <td style="width:28%;" class="flextablehead" colspan="3"><% out.print(resource.getString("AdminConsole.Page.RoomTypes.discountrate"));%></td>
                    <td style="width:10%;" class="flextablehead" colspan="2"><% out.print(resource.getString("AdminConsole.Page.PriceManager.minimumperson"));%></td>
                    <td style="width:10%;" class="flextablehead" ><%out.print(resource.getString("AdminConsole.Page.PriceManager.inclusivebreakfast"));%></td>
                    <td style="width:10%;" class="flextablehead"><% out.print(resource.getString("simpleLabel.action"));%></td>
                </tr>
            	<tr>
                	<td name="firsttd" class="firsttd secondtd">&nbsp;</td>
                    <td name="firsttd" class="firsttd secondtd">&nbsp;</td>
                    <td name="firsttd" class="firsttd secondtd">
						<% out.print(resource.getString("AdminConsole.Page.RoomTypes.pricepernight"));%>
                    </td>
                    <td name="firsttd" class="firsttd secondtd">
					<% out.print(resource.getString("AdminConsole.Page.RoomTypes.upcharge"));%>
                    </td>
                    <td name="firsttd" class="firsttd secondtd">
					<% out.print(resource.getString("AdminConsole.Page.RoomTypes.extrabed"));%>
                    </td>
                    <td name="firsttd" class="firsttd secondtd">
					<% out.print(resource.getString("AdminConsole.Page.RoomTypes.pricepernight"));%>
                    </td>
                    <td name="firsttd" class="firsttd secondtd">
					<% out.print(resource.getString("AdminConsole.Page.RoomTypes.upcharge"));%>
                    </td>
                    <td name="firsttd" class="firsttd secondtd">
					<% out.print(resource.getString("AdminConsole.Page.RoomTypes.extrabed"));%>
                    </td>
                    <td name="firsttd" class="firsttd secondtd">
					<% out.print(resource.getString("Popup.adult"));%>
                    </td>
                    <td name="firsttd" class="firsttd secondtd">
					<% out.print(resource.getString("RoomManagementList.CheckOut.table.child"));%>
                    </td>
                    <td name="firsttd" class="firsttd secondtd">&nbsp;</td>
                    <td name="firsttd" class="firsttd secondtd">&nbsp;</td>
                </tr>
                <tr id="autofill" style="display:none">
                	<td class="firsttd secondtd">&nbsp;</td>
                    <td class="firsttd secondtd">&nbsp;</td>
                    <td class="firsttd secondtd"><span lable="pricepernight"></span></td>
                    <td class="firsttd secondtd"><span lable="upchargeperson"></span></td>
                    <td class="firsttd secondtd"><span lable="extrabedprice"></span></td>
                    <td class="firsttd secondtd"><input class="inputtextright" type="text" size="8" id="exppn" group="pricepernight"></td>
                    <td class="firsttd secondtd"><input class="inputtextright" type="text" size="8" id="exucp" group="upchargeperson"></td>
                    <td class="firsttd secondtd"><input class="inputtextright" type="text" size="8" id="exexbed" group="extrabedprice"></td>
                    <td class="firsttd secondtd">
                      <select name="adult" id="exadult"></select>
                    </td>
                    <td class="firsttd secondtd">
                    	<select name="child" id="exchild"></select>
                  </td>
                    <td class="firsttd secondtd">
                    	<input type="checkbox" name="breakfast" id="exBreakfast"/>
                   </td>
                    <td class="firsttd secondtd">
                    	<input type="button" style="display:none" class="addbtn"  id="fillbtn" value="Auto Fill" onClick="autofill()">
                    </td>
                </tr>
            </table>
        </td>
    </tr>
    <tr>
        <td style="border:solid 1px #e0e0e1;background-color:#FFFFFF"><span>
        (<% out.print(resource.getString("AdminConsole.Page.PriceManager.warning"));%>)
        </span>
        </td>
    </tr>
    <tr>

        <td><span style="text-align:center"><center><input class="addbtn"name="save" type="button" value="Save" onClick="addflexiblepackage()"/><input class="deletebtn"name="cancel" type="button" value="Cancel" onClick="cancelFlex();"/></center></span>
        </td>
    </tr>
</table>